<?php
/**
 * Created by PhpStorm.
 * User: HuangLuSen
 * Date: 2017/12/5
 * Time: 16:49
 */

namespace app\wechat\controller;

use app\wechat\traits\Wechat;
use think\Controller;

/**
 * Class Weixin
 * @package app\index\controller
 * @author: Huang
 */
class Weixin extends Controller
{
    use Wechat;
    public function index()
    {
        if(input('echostr') && $this->checkSignature()){
            //验证token
            return input('echostr');
        }
    }
}